package observerNotification;

import java.net.InetAddress;


/**
 * Message: want to send a message
 * 
 * <p>
 * <ul>
 * <li>Project: 	ChatSystemG3</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see ObserverNotification
 */
public class MessageObserverNotification extends ConversationObserverNotification {

	private String message;				//Message to send to the remote user

	/**
	 * Construct
	 * @param convId  : unique identifier of the conversation in which the message must be sent
	 * @param ipAddress	: ip address of the remote user 
	 * @param username	: name of the user that have sent the message
	 * @param message : message to be sent
	 */
	public MessageObserverNotification(int convId, InetAddress ipAddress,
			String username, String message) {
		super(convId, ipAddress, username);
		this.message = message;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
